export const formatDay = (d:Date) => {
  const year = d.getFullYear()
  const month = d.getMonth() + 1
  const day = d.getDate()

  // 2020-01-01
  return [year, month > 9 ? month : '0' + month, day > 9 ? day : '0' + day].join('-')
}
